<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--><!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]--><!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]--><!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--><head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
	<title></title>
	<meta name="description" content="">
	<meta name="author" content="">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<link rel="shortcut icon" href="/favicon.ico">
	<link rel="apple-touch-icon" href="/apple-touch-icon.png">
	<link rel="stylesheet" href="css/style.css?v=2">

	<script src="js/libs/modernizr-1.7.min.js"></script>
	<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2103237-10']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
<?php
if(!empty($_POST['screenshot'])){
	$IncludeUpload = true;
	include_once('upload.php');
}

?>	<div id="header-container">
		<header class="wrapper">
			<h1 id="title">Screener.tk</h1>
			<!--<nav>
				<ul>
					<li><a href="#">Some</a></li>
					<li><a href="#">navigation</a></li>
					<li><a href="#">links</a></li>
				</ul>
			</nav>-->
		</header>
	</div>
	<div id="main" class="wrapper">
		<?php if(isset($response)){ ?>
		<div class="result-screener">
				<table class="h5w-table-creator">
				  <tbody>
					<tr>
					  <td>URL image</td>
					  <td><input type="text" value="<?php echo $response->links->{"image_link"}; ?>" /></td>
					</tr>	
					<tr>
					  <td>URL thumbnail - 150x150</td>
					  <td><input type="text" value="<?php echo $response->links->{"thumb_link"}; ?>" /></td>
					</tr>	
					<tr>
					  <td>HTML with max file size</td>
					  <td><input type="text" value="<?php echo htmlspecialchars($response->links->{"image_html"}); ?>" /></td>
					</tr>
					<tr>
					  <td>BBCode with thumbnail</td>
					  <td><input type="text" value="<?php echo htmlspecialchars($response->links->{"image_bb"}); ?>" /></td>
					</tr>
					<tr>
					  <td>HTML with thumbnail</td>
					  <td><input type="text" value="<?php echo htmlspecialchars($response->links->{"thumb_html"}); ?>" /></td>
					</tr>
				  </tbody>
				</table>
				<div class="preview">
					<?php echo $response->links->{"thumb_html"}; ?>
				</div>
		</div>
		<?php }?>
		<div class="screenuploader"> Here paste your screenshot -  CTRL + V</div>
	</div>
	<div class="hidden-form">
		<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" class="form-send">
			<textarea name="screenshot" class="screenshot-class"></textarea>
			<img src='ajax-loader.gif' alt='Please wait' />
		</form>
	</div>
	
	<div id="footer-container" style="text-align:center;">
		<a href="http://code.google.com/p/screener-website/"> Download this Website/Script</a>
	</div>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
	<script src="js/script.js"></script>
	<!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]--></body>
</html>